package com.sherlochao.beans;

import java.util.ArrayList;
import java.util.List;

import com.sherlochao.model.Course;

public class TeacherBean {
	
	String teacherId;
	
	String teacherName;
	
	String teacherBirthday;
	
	ArrayList<String> courses = new ArrayList<String>() ;
	
	ArrayList<Integer> students = new ArrayList<Integer>() ;

	public String getTeacherId() {
		return teacherId;
	}

	public void setTeacherId(String teacherId) {
		this.teacherId = teacherId;
	}

	public String getTeacherName() {
		return teacherName;
	}

	public void setTeacherName(String teacherName) {
		this.teacherName = teacherName;
	}

	public String getTeacherBirthday() {
		return teacherBirthday;
	}

	public void setTeacherBirthday(String teacherBirthday) {
		this.teacherBirthday = teacherBirthday;
	}

	public ArrayList<String> getCourses() {
		return courses;
	}

	public void setCourses(List<Course> courses) {
		for(int i = 0; i < courses.size(); i++){
			this.courses.add(courses.get(i).getCourseName());
		}
	}

	public ArrayList<Integer> getStudents() {
		return students;
	}

	public void setStudents(List<Integer> students) {
		for(int i = 0; i < students.size(); i++){
			this.students.add(students.get(i));
		}
	}
	
	

}
